package app.objectstoragedemo.Pojo.Mapper;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.Instant;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder

@TableName(value = "FILE_STORAGE",schema = "MY_DATABASE")
public class FileStorage {
    // 文件uuid
    private String uuid;
    // 文件名
    private String name;
    // 文件类型
    private String type;
    // 文件路径
    private String path;
    // 创建时间
    @TableField(fill = FieldFill.INSERT)
    private Instant createTime;
}